ActiveRecord how to check whether a table is partitioned